
<%@ page import="com.cisite.cont.Channel" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'channel.label', default: '频道列表页')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="list-channel" class="content scaffold-list" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
						<g:sortableColumn property="id" title="${message(code: 'channel.channelId.label', default: '频道id')}" />
						<g:sortableColumn property="channelName" title="${message(code: 'channel.channelName.label', default: '访问路径')}" />
					    <g:sortableColumn property="hasTitleImg" title="${message(code: 'channel.hasTitleImg.label', default: '优先级')}" />
						<g:sortableColumn property="hasContImg" title="${message(code: 'channel.hasContImg.label', default: '每页记录数')}" />
						<g:sortableColumn property="isComment" title="${message(code: 'channel.isComment.label', default: '来自链接')}" />
						<g:sortableColumn property="id" title="${message(code: 'operation.label', default: '操作')}" />
					</tr>
				</thead>
				<tbody>
				<g:each in="${channelInstanceList}" status="i" var="channelInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">				
						<td><g:link action="show" id="${channelInstance?.id}">${channelInstance?.id}</g:link></td>
						<td>${channelInstance?.visitPath}</td>
						<td>${channelInstance?.priority}</td>
						<td>${channelInstance?.pageSize}</td>
						<td>${channelInstance?.link}</td>
						<td>
						     <g:link action="update" id="${channelInstance.id}">更新</g:link> |
						     <g:link action="delete" id="${channelInstance.id}">删除</g:link>
						</td>
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${channelInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
